<?php

$app_modules["ff_mail_archive"] = array(
    'slug' => __('mail_archive'),
    'name' => __('Archive emails'),
    'menu_name' => __('Arc. emails'),
    'singular_name' => __('Archive email'),
    'icon' => 'letter_16.png',
    'is_secundary' =>true,
    'module_columns_sortby' => array('post_title', 'assign_to', 'account_parent', 'contact_parent', 'start_date', 'post_date'),
    'module_columns' => array('post_title', 'assign_to', 'account_parent', 'contact_parent', 'start_date', 'post_date'),
    'module_columns_filters' => array('account_parent', 'assign_to', 'contact_parent', 'potential_parent'),
    'module_columns_config' => array(
        'grid_type' => 'ajax_data',
        'use_paging' => true,
        'use_global_default_paging_nb' => true, //THIS MUST BE SET IN GENERAL OPTION, with option 'default_paging_nb'
        //'nb_by_page'=>20, //To FORCE A SPECIFIC PAGING NB FOR THIS MODULE. WILL OVERHIDE THE use_global_default_paging_nb NB
        'user_can_change_paging_nb_by_module' => true,
    ),
    'module_dashboard_widgets' => array(
       /* '10_latest' => array(
            'label' => 'Archive emails',
            'type' => 'latest_list',
            //'show_date'=>true,
            'fields' => array('assign_to')
        )*/
    ),
    'module_categories' => array('cat15_mail_archive'),
    'module_tags' => array('tag15_crm'),
    'metaboxes' => array(
        /* 'events_team_notif'=>array(
          'title' => __( 'Team & Notifications' ),
          'context' => 'side',
          'priority' => 'high',
          'positioning' =>array(
          'main' => array(
          ),

          'tabs' => array(

          'tab_l1' => array(
          'label'=>'Team',
          'items'=>array(
          array('assign_to'),
          array('team_assignments')
          )
          ),
          'tab_l2' => array(
          'label'=>'Notifications',
          'items'=>array(
          array(
          'notifications'
          ),
          array('notifications_comments'),
          )
          )
          )
          )
          ), */
        'mailinformation' => array(
            'title' => __('Mail Information'),
            'context' => 'advanced',
            'priority' => 'high',
            'positioning' => array(
                'main' => array(
                    array(
                        'ref_id', 'email_archi_set_title', 'emails_date_sent', 'emails_time_sent'
                    ),
                    /* array(
                      'help_email_contacts'
                      ), */

                    array(
                        'from_parent'
                    ),
                    array(
                        'to_parent'
                    ),
                    array(
                        'cc_parent'
                    ),
                    array(
                        'account_parent'
                    ),
                    array(
                        'contact_parent'
                    ),
                    array(
                        'lead_parent'
                    ),
                    /* array(
                      'potential_parent'
                      ), */
                    array(
                        'created_by', 'created_date', 'modified_date'
                    )
                ),
                'tabs' => array(
                    'tab_2' => array(
                        'label' => 'Email Body content',
                        'items' => array(
                            array('email_body'),
                        )
                    ),
                    'tab_11' => array(
                        'label' => 'Comments',
                        'items' => array(
                            array('comments'),
                        )
                    ),
                    'tab_10' => array(
                        'label' => 'Files',
                        'items' => array(
                            array('files_upload'),
                        )
                    )
                )
            )
        )
    )
);

